package com.xuan.mail.service;

import com.xuan.mail.domin.SpamKeyword;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 86156
* @description 针对表【spam_keyword】的数据库操作Service
* @createDate 2024-04-11 10:03:22
*/
public interface SpamKeywordService extends IService<SpamKeyword> {

    // 获取所有垃圾邮件关键词
    List<String> getAllSpamKeywords();

    // 检测邮件是否为垃圾邮件
    boolean isSpamEmail(String emailContent, List<String> spamKeywords);
}
